﻿using PluginForCertHandOut;

namespace Plugin.Test
{
    [TestClass]
    public class UnitTest_LinuxCommon
    {
        private readonly ICertHandOut linuxCommon;

        public UnitTest_LinuxCommon()
        {
            linuxCommon = new LinuxCommon.LinuxCommonCertHandOut();
            linuxCommon.Config = new Dictionary<string, string>
            {
                
            };
        }

        [TestMethod]
        public void SaveCert()
        {
            var res = linuxCommon.SaveCert(new CertFile() { Key="abc", Pem="111", PFX=new byte[] { 0x00,0x11} });
            Assert.AreEqual(res.Result, true);
        }
    }
}
